package com.luohh.treeroom.entity;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 罗辉煌
 * @since 2020-02-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class GoodsInfo implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 商品ID
     */
    @TableId(value="id", type= IdType.AUTO)
    @ApiModelProperty(value = "商品ID")
    private Integer goodsId;

    /**
     * 商品名字
     */
    @ApiModelProperty(value = "商品名字")
    private String goodsName;

    /**
     * 商品价格
     */
    @ApiModelProperty(value = "商品价格")
    private BigDecimal price;

    /**
     * 书本库存
     */
    @ApiModelProperty(value = "库存")
    private Integer stock;

    /**
     * 书本作者
     */
    @ApiModelProperty(value = "书本作者")
    private String bookAuthor;

    /**
     * 书本出版社
     */
    @ApiModelProperty(value = "出版社")
    private String bookPress;

    /**
     * 书本简介
     */
    @ApiModelProperty(value = "书本简介")
    private String bookDescription;

    /**
     * 书本封面
     */
    @ApiModelProperty(value = "书本封面")
    private String icon;

    /**
     * 书本图片列表
     */
    @ApiModelProperty(value = "书本详情图片")
    private String image;

    /**
     * 书本分类
     */
    @ApiModelProperty(value = "分类")
    private Integer goodsType;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;


}
